Optimal. Leaf size=27 \[ \sinh ^{-1}(x)-\sqrt {2} \tanh ^{-1}\left (\frac {\sqrt {2} x}{\sqrt {x^2+1}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.01, antiderivative size = 27, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.235, Rules used = {402, 215, 377, 207} \[ \sinh ^{-1}(x)-\sqrt {2} \tanh ^{-1}\left (\frac {\sqrt {2} x}{\sqrt {x^2+1}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 207
Rule 215
Rule 377
Rule 402
Rubi steps
\begin {align*} \int \frac {\sqrt {1+x^2}}{-1+x^2} \, dx &=2 \int \frac {1}{\left (-1+x^2\right ) \sqrt {1+x^2}} \, dx+\int \frac {1}{\sqrt {1+x^2}} \, dx\\ &=\sinh ^{-1}(x)+2 \operatorname {Subst}\left (\int \frac {1}{-1+2 x^2} \, dx,x,\frac {x}{\sqrt {1+x^2}}\right )\\ &=\sinh ^{-1}(x)-\sqrt {2} \tanh ^{-1}\left (\frac {\sqrt {2} x}{\sqrt {1+x^2}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 0.03, size = 64, normalized size = 2.37 \[ \frac {\log \left (\sqrt {2} \sqrt {x^2+1}-x+1\right )-\log \left (\sqrt {2} \sqrt {x^2+1}+x+1\right )+\log (1-x)-\log (x+1)}{\sqrt {2}}+\sinh ^{-1}(x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.53, size = 67, normalized size = 2.48 \[ \frac {1}{2} \, \sqrt {2} \log \left (\frac {9 \, x^{2} - 2 \, \sqrt {2} {\left (3 \, x^{2} + 1\right )} - 2 \, \sqrt {x^{2} + 1} {\left (3 \, \sqrt {2} x - 4 \, x\right )} + 3}{x^{2} - 1}\right ) - \log \left (-x + \sqrt {x^{2} + 1}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.62, size = 70, normalized size = 2.59 \[ -\frac {1}{2} \, \sqrt {2} \log \left (\frac {{\left | 2 \, {\left (x - \sqrt {x^{2} + 1}\right )}^{2} - 4 \, \sqrt {2} - 6 \right |}}{{\left | 2 \, {\left (x - \sqrt {x^{2} + 1}\right )}^{2} + 4 \, \sqrt {2} - 6 \right |}}\right ) - \log \left (-x + \sqrt {x^{2} + 1}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.01, size = 84, normalized size = 3.11 \[ \arcsinh \relax (x )+\frac {\sqrt {2}\, \arctanh \left (\frac {\left (-2 x +2\right ) \sqrt {2}}{4 \sqrt {-2 x +\left (x +1\right )^{2}}}\right )}{2}-\frac {\sqrt {2}\, \arctanh \left (\frac {\left (2 x +2\right ) \sqrt {2}}{4 \sqrt {2 x +\left (x -1\right )^{2}}}\right )}{2}-\frac {\sqrt {-2 x +\left (x +1\right )^{2}}}{2}+\frac {\sqrt {2 x +\left (x -1\right )^{2}}}{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 2.98, size = 59, normalized size = 2.19 \[ -\frac {1}{2} \, \sqrt {2} \operatorname {arsinh}\left (\frac {2 \, x}{{\left | 2 \, x + 2 \right |}} - \frac {2}{{\left | 2 \, x + 2 \right |}}\right ) - \frac {1}{2} \, \sqrt {2} \operatorname {arsinh}\left (\frac {2 \, x}{{\left | 2 \, x - 2 \right |}} + \frac {2}{{\left | 2 \, x - 2 \right |}}\right ) + \operatorname {arsinh}\relax (x) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.17, size = 59, normalized size = 2.19 \[ \mathrm {asinh}\relax (x)+\frac {\sqrt {2}\,\left (\ln \left (x-1\right )-\ln \left (x+\sqrt {2}\,\sqrt {x^2+1}+1\right )\right )}{2}-\frac {\sqrt {2}\,\left (\ln \left (x+1\right )-\ln \left (\sqrt {2}\,\sqrt {x^2+1}-x+1\right )\right )}{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sqrt {x^{2} + 1}}{\left (x - 1\right ) \left (x + 1\right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________